package com.axjy.test;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.axjy.mapper.MedicineMapper;
import com.axjy.pojo.Medicine;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("applicationContext.xml")
public class test {
	
	@Autowired
	private MedicineMapper med;
	@Test
	public void aa() {
		List<Medicine> list = med.list();
		for (Medicine m : list) {
			System.out.println(m.getMdName());
		}
	}
}
